package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 luntai_news
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class LuntaiNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 封面图地址 */
    @Excel(name = "封面图地址")
    private String cover;

    /** 正文 */
    @Excel(name = "正文")
    private String body;

    /** 新闻类型 */
    @Excel(name = "新闻类型")
    private Integer type;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isdelete;

    /** 状态 1启用 2禁用 */
    @Excel(name = "状态 1启用 2禁用")
    private Integer status;

    /** 上传人id，管理员id */
    @Excel(name = "上传人id，管理员id")
    private Integer uploadAdminId;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer views;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setBody(String body) 
    {
        this.body = body;
    }

    public String getBody() 
    {
        return body;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setIsdelete(Integer isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Integer getIsdelete() 
    {
        return isdelete;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setUploadAdminId(Integer uploadAdminId) 
    {
        this.uploadAdminId = uploadAdminId;
    }

    public Integer getUploadAdminId() 
    {
        return uploadAdminId;
    }
    public void setViews(Integer views) 
    {
        this.views = views;
    }

    public Integer getViews() 
    {
        return views;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("cover", getCover())
            .append("body", getBody())
            .append("type", getType())
            .append("isdelete", getIsdelete())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("uploadAdminId", getUploadAdminId())
            .append("views", getViews())
            .toString();
    }
}
